﻿using System;

namespace Davian.Model
{
    class Postgresql
    {
        private String dbname = null;
        private String username = null;
        private String password = null;
        private String dbhost = null;
        private String dbport = null;

        public String DbName
        {
            get { return dbname; }
            set { dbname = value; }
        }

        public String Username
        {
            get { return username; }
            set { username = value; }
        }

        public String Password
        {
            get { return password; }
            set { password = value; }
        }

        public String DbHost
        {
            get { return dbhost; }
            set { dbhost = value; }
        }

        public String DbPort
        {
            get { return dbport; }
            set { dbport = value; }
        }

        public String ConnectionString
        {
            get { return "Server=" + DbHost + ";Port=" + DbPort + ";User Id=" + Username + ";Password=" + Password + ";Database=" + DbName + ";"; }
        }
    }
}
